<?php
	require($path_prefix.'settings.php');
	foreach($settings['installed_modules'] as $module){
		$module_filename = $path_prefix.$settings['module_directory'].$module.'.php';
		if(file_exists($module_filename))
			require($module_filename);
		else
			echo($module_filename.' does not exist.');
	}
	
	require($path_prefix.$settings['template_directory'].(isset($template) ? $template : $settings['default_template']));
?>